From: Harry Míchal Date: Sat, 24 Oct 2020 15:07:10 +0000 (+0000) Subject: mpris: Switch text in title and body X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~772 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d318bf539dffad7c02f63e0cddf8cca68e687049;p=gnome-shell.git mpris: Switch text in title and body Most media players have a media player that shows the title of a song and artists in the song. In those media players the title is highlighted (bold text) and the list of artists is under the title. Shell does the exact opposite in the player in the notification area. Example media players: Spotify, Rhythmbox, GNOME Music https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1480 --- diff --git a/js/ui/mpris.js b/js/ui/mpris.js index 3650c577a..4e541d8a0 100644 --- a/js/ui/mpris.js +++ b/js/ui/mpris.js @@ -66,8 +66,8 @@ class MediaMessage extends MessageList.Message { } _update() { - this.setTitle(this._player.trackArtists.join(', ')); - this.setBody(this._player.trackTitle); + this.setTitle(this._player.trackTitle); + this.setBody(this._player.trackArtists.join(', ')); if (this._player.trackCoverUrl) { let file = Gio.File.new_for_uri(this._player.trackCoverUrl);